package org.example.springbootserver.controller;

import lombok.RequiredArgsConstructor;
import org.example.springbootserver.pojo.R;
import org.example.springbootserver.service.EmojiService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/Emoji")
@RequiredArgsConstructor
public class EmojiController {
    private final EmojiService emojiService;

    @GetMapping("/getEmojiByPage")
    public R getEmojiByPage(@RequestParam int pageSize,@RequestParam int current){
        return emojiService.getEmojiByPage(pageSize,current);
    }

}
